
//常用工具类
export default class NGameUtil{

    public static ThrottleASync(func: Function){
        let isRun:boolean = false;
        return async (...args) => {

            if(isRun) {
                console.log("节流");
                return;
            }
            isRun = true;

            try{
                await func(...args);
            }catch{}

            isRun = false;

        }
    }

}

